package com.hy.erp.inventory.pojo;

import java.io.Serializable ;
import java.util.Date ;

import javax.persistence.Column ;
import javax.persistence.Entity ;
import javax.persistence.FetchType ;
import javax.persistence.Id ;
import javax.persistence.ManyToOne ;
import javax.persistence.Table ;

import org.hibernate.annotations.Index ;
import org.jboss.seam.annotations.Name ;

import com.hy.erp.inventory.dao.interfaces.IUnitConversionRateDao;
import com.hy.erp.inventory.pojo.interfaces.IUnitConversionRate;
import com.hy.erp.inventory.vsoft.libra.enterprise.framework.persistence.api.annotation.DaoA;
import com.hy.erp.inventory.vsoft.libra.enterprise.framework.persistence.entity.AbstractPersistentEntity;
/**
 * 
 * <ul>
 * <li>开发作者：李冰</li>
 * <li>设计日期：2010-10-6；时间：下午02:18:05</li>
 * <li>类型名称：UnitConversionRate</li>
 * <li>设计目的：单位换算率</li>
 * </ul>
 * <ul>
 * <b>修订编号：</b>
 * <li>修订日期：</li>
 * <li>修订作者：</li>
 * <li>修订原因：</li>
 * <li>修订内容：</li>
 * </ul>
 */
/*@Entity
@Table(name="unitConversionRate")
@Name("unitConversionRate")
@DaoA(IUnitConversionRateDao.class)
*/public class UnitConversionRate extends AbstractPersistentEntity implements IUnitConversionRate
{

	/**
	 * <ul>
	 * <li>开发作者：李冰</li>
	 * <li>设计日期：2010-10-6；时间：下午02:17:57</li>
	 * <li>字段类型：long；字段名称：serialVersionUID</li>
	 * <li>设计目的：</li>
	 * </ul>
	 * <ul>
	 * <b>修订编号：</b>
	 * <li>修订日期：</li>
	 * <li>修订作者：</li>
	 * <li>修订原因：</li>
	 * <li>修订内容：</li>
	 * </ul>
	 */
	private static final long	serialVersionUID	=
														- 5154621844759265143L ;
	
	
	
	public UnitConversionRate ( )
	{
		super ( ) ;
	}

	
@ManyToOne(targetEntity=Units.class,fetch=FetchType.LAZY)
	public Units getSourceUnits ( )
	{
		return this.get(IUnitConversionRate.SOURCEUNITS) ;
	}

	public void setSourceUnits (
									Units sourceUnits )
	{
		super.set(IUnitConversionRate.SOURCEUNITS,sourceUnits) ;
	}
	@ManyToOne(targetEntity=UnitGroup.class,fetch=FetchType.LAZY)
	public UnitGroup getUnitGroup ( )
	{
		return this.get(IUnitConversionRate.UNITGROUP) ;
	}

	public void setUnitGroup (
								UnitGroup unitGroup )
	{
		super.set(IUnitConversionRate.UNITGROUP,unitGroup) ;
	}
	@ManyToOne(targetEntity=UnitType.class,fetch=FetchType.LAZY)
	public UnitType getUnitType ( )
	{
		return this.get(IUnitConversionRate.UNITTYPE) ;
	}

	public void setUnitType (
								UnitType unitType )
	{
		super.set(IUnitConversionRate.UNITTYPE,unitType) ;
	}
	@ManyToOne(targetEntity=Units.class,fetch=FetchType.LAZY)
	public Units getNormUnits ( )
	{
		return this.get(IUnitConversionRate.NORMUNITS) ;
	}

	public void setNormUnits (
								Units normUnits )
	{
		super.set(IUnitConversionRate.NORMUNITS,normUnits) ;
	}
	@Column(name="conversionRate",length=50)
	@Index(name="conversionRateIndex")
	public String getConversionRate ( )
	{
		return this.get(IUnitConversionRate.CONVERSIONRATE) ;
	}

	public void setConversionRate (
									String conversionRate )
	{
		super.set(IUnitConversionRate.CONVERSIONRATE,conversionRate) ;
	}
	@Column(name="crteateDate",length=50)
	@Index(name="crteateDateIndex")
	public Date getCrteateDate ( )
	{
		return this.get(IUnitConversionRate.CRTEATEDATE) ;
	}

	public void setCrteateDate (
									Date crteateDate )
	{
		super.set(IUnitConversionRate.CRTEATEDATE,crteateDate) ;
	}
	@Column(name="description",length=50)
	@Index(name="descriptionIndex")
	public String getDescription ( )
	{
		return this.get(IUnitConversionRate.DESCRIPTION) ;
	}

	public void setDescription (
									String description )
	{
		super.set(IUnitConversionRate.DESCRIPTION,description) ;
	}
	@Column(name="coment",length=50)
	@Index(name="comentIndex")
	public String getComent ( )
	{
		return this.get(IUnitConversionRate.COMENT) ;
	}

	public void setComent (
							String coment )
	{
		 super.set(IUnitConversionRate.COMENT,coment) ;
	}
	@ManyToOne(targetEntity=ConversionStyle.class,fetch=FetchType.LAZY)
	public ConversionStyle getConversionStyle ( )
	{
		return this.get(IUnitConversionRate.CONVERSIONSTYLE) ;
	}

	public void setConversionStyle (
										ConversionStyle conversionStyle )
	{
		 super.set(IUnitConversionRate.CONVERSIONSTYLE,conversionStyle) ;
	}
	
	
	
	
	
	
	

}
